package com.culture.bootdemo.designPattern设计模式.strategy策略模式.service;

import com.culture.bootdemo.designPattern设计模式.strategy策略模式.MessageInfo;
import com.culture.bootdemo.designPattern设计模式.strategy策略模式.MsgType;
import com.culture.bootdemo.designPattern设计模式.strategy策略模式.MsgTypeHandler;
import org.springframework.stereotype.Service;

/**
 * @author wen
 * @date 2019/11/27 14:19
 * @Description
 **/
@Service
@MsgTypeHandler(value = MsgType.IMAGE)
public class ImageMessageServiceImpl implements MessageService {

    @Override
    public void handleMessage(MessageInfo messageInfo) {
        System.out.println("go to 图片处理" + messageInfo.getContent());
    }
}
